package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Contract;
import cn.wolfcode.car.business.query.ContractQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Contract record);

    Contract selectByPrimaryKey(Long id);

    List<Contract> selectAll();

    int updateByPrimaryKey(Contract record);

    List<Contract> selectForList(ContractQuery qo);

    void changeNullifyState(@Param("id") Long id, @Param("NullifyState") Integer NullifyState);

    void changeAuditState(@Param("id") Long id, @Param("AuditState") Integer AuditState);

    void changeAffixSealState(@Param("id") Long id, @Param("affixSealState") Integer affixSealState);
}